package com.jack006.algorithmi.day1;

import java.util.Scanner;

/**
 * @Classname B1002
 * @Description  A+B > C
 * @Date 2021-07-04 22:44
 * @Created by jack
 */
public class B1011 {

    public static void main(String[] args) {
        System.out.println("======输入行数，并输入行数据 a b c 三个数，中间空格间割======");
        Scanner in = new Scanner(System.in);
        int len = in.nextInt();
        in.nextLine();
        String[] arr = new String[len];
        for (int i = 0; i < len; i++) {
            arr[i] = in.nextLine();
        }

        // 判断是否正确
        for (int i = 0; i < arr.length; i++) {
            String[] split = arr[i].split(" ");
            long ab = Long.valueOf(split[0])
                    + Long.valueOf(split[1]);
            long c = Long.valueOf(split[2]);
            boolean isRight = ab > c;
            String out =  "Case #"+(i+1)+":"+isRight;
            System.out.println(out);
        }
    }

}
